<?
//获取nav-itemed，控制侧边栏展开

if($_REQUEST['nav-itemed']=="member")
{$navi_member="layui-nav-itemed";}

if($_REQUEST['nav-itemed']=="department")
{$navi_department="layui-nav-itemed";}

if($_REQUEST['nav-itemed']=="employee")
{$navi_employee="layui-nav-itemed";}

if($_REQUEST['nav-itemed']=="finance")
{$navi_finance="layui-nav-itemed";}




if($_REQUEST['nav-itemed']=="receipt")
{$navi_receipt="layui-nav-itemed";}


if($_REQUEST['nav-itemed']=="material")
{$navi_material="layui-nav-itemed";}

if($_REQUEST['nav-itemed']=="course")
{$navi_course="layui-nav-itemed";}


if($_REQUEST['nav-itemed']=="access_record")
{$navi_access_record="layui-nav-itemed";}

if($_REQUEST['nav-itemed']=="equipment")
{$navi_equipment="layui-nav-itemed";}

?>










<div style="height: 100%;overflow-y: auto;">
<style>
  #sidebar .layui-nav {
    margin-bottom: 300px;
  }
</style>

<ul class="layui-nav layui-nav-tree" >
<!-- 侧边导航: <ul class="layui-nav layui-nav-tree layui-nav-side"> -->

<? $quanxian=explode(",",$_SESSION['quanxian']);?>





<!---->
<!--  --><?//if(in_array("finance",$quanxian)){?>
<!--    <li class="layui-nav-item --><?//echo $navi_finance ?><!--">-->
<!--    <a href="javascript:;"><i class="layui-icon">&#xe629;</i>财务管理</a>-->
<!--    <dl class="layui-nav-child">-->
<!--      <dd><a href="--><?//echo $domain?><!--/controlbase/finance/detail-list.php?nav-itemed=finance">统计信息</a></dd>-->
<!--      <dd><a href="--><?//echo $domain?><!--/controlbase/finance/detail-add.php?nav-itemed=finance">新增收支</a></dd>-->
<!---->
<!--      <dd><a href="--><?//echo $domain?><!--/controlbase/finance/list.php?nav-itemed=finance">财务明细</a></dd>-->
<!---->
<!---->
<!--    </dl>-->
<!--  </li>-->
<?//;} ?>
















<?if(in_array("employee",$quanxian)){?>
  <li class="layui-nav-item <?echo $navi_employee ?>">
      <a href="javascript:;"><i class="layui-icon">&#xe614;</i>员工管理</a>

      <dl class="layui-nav-child">


<dd><a href="<?echo $domain?>/controlbase/employee/detail-list.php?nav-itemed=employee"><i class="layui-icon">&#xe613;</i>员工管理</a></dd>

<dd><a href="<?echo $domain?>/controlbase/employee/detail-add.php?nav-itemed=employee"><i class="layui-icon">&#xe613;</i>新增员工</a></dd>

      </dl>




    </li>
    <?;} ?>












  <?if(in_array("equipment",$quanxian)){?>
<li class="layui-nav-item <?echo $navi_equipment ?>">
  <a href="javascript:;"><i class="layui-icon">&#xe614;</i>车辆管理</a>

  <dl class="layui-nav-child">


    <dd><a href="<?echo $domain?>/controlbase/equipment/detail-list.php?nav-itemed=equipment">车辆列表</a></dd>

    <dd><a href="<?echo $domain?>/controlbase/equipment/detail-add.php?nav-itemed=equipment">新增车辆</a></dd>

  </dl>


</li>
<?;} ?>








  <?if(in_array("access_record",$quanxian)){?>
  <li class="layui-nav-item <?echo $navi_access_record ?>">
    <a href="javascript:;"><i class="layui-icon">&#xe614;</i>签到管理</a>

    <dl class="layui-nav-child">


      <dd><a href="<?echo $domain?>/controlbase/access_record/detail-list.php?nav-itemed=access_record">签到记录</a></dd>
      <dd><a href="<?echo $domain?>/controlbase/access_record/collect.php?nav-itemed=access_record">签到汇总</a></dd>

  </li>
    <?;} ?>








</ul>


</div>